package org.example.ychdp.dao;

import org.apache.ibatis.annotations.Mapper;
import org.example.ychdp.entity.User;
import org.example.ychdp.entity.UserExample;

import java.util.List;

@Mapper
public interface UserDao {

    List<User> selectAllUser();

    int deleteByPrimaryKey(Integer userid);

    int insert(User record);

    int insertSelective(User record);

    User selectByPrimaryKey(Integer userid);

    int updateByPrimaryKeySelective(User record);

    int updateByPrimaryKey(User record);

    User selectUserByName(String name);

    List<User> selectByExample(UserExample example);


}